package com.zk.fm.entity;

import java.io.Serializable;
import java.util.Hashtable;

import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;

public class Player implements KvmSerializable, Serializable {
	private long id;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getCorners() {
		return corners;
	}

	public void setCorners(int corners) {
		this.corners = corners;
	}

	public int getCrossing() {
		return crossing;
	}

	public void setCrossing(int crossing) {
		this.crossing = crossing;
	}

	public int getDribbling() {
		return dribbling;
	}

	public void setDribbling(int dribbling) {
		this.dribbling = dribbling;
	}

	public int getFinishing() {
		return finishing;
	}

	public void setFinishing(int finishing) {
		this.finishing = finishing;
	}

	public int getFirst_touch() {
		return first_touch;
	}

	public void setFirst_touch(int firstTouch) {
		first_touch = firstTouch;
	}

	public int getFree_kick_taking() {
		return free_kick_taking;
	}

	public void setFree_kick_taking(int freeKickTaking) {
		free_kick_taking = freeKickTaking;
	}

	public int getHeading() {
		return heading;
	}

	public void setHeading(int heading) {
		this.heading = heading;
	}

	public int getLong_shots() {
		return long_shots;
	}

	public void setLong_shots(int longShots) {
		long_shots = longShots;
	}

	public int getLong_throws() {
		return long_throws;
	}

	public void setLong_throws(int longThrows) {
		long_throws = longThrows;
	}

	public int getMarking() {
		return marking;
	}

	public void setMarking(int marking) {
		this.marking = marking;
	}

	public int getPassing() {
		return passing;
	}

	public void setPassing(int passing) {
		this.passing = passing;
	}

	public int getPenalty_taking() {
		return penalty_taking;
	}

	public void setPenalty_taking(int penaltyTaking) {
		penalty_taking = penaltyTaking;
	}

	public int getTackling() {
		return tackling;
	}

	public void setTackling(int tackling) {
		this.tackling = tackling;
	}

	public int getTechnique() {
		return technique;
	}

	public void setTechnique(int technique) {
		this.technique = technique;
	}

	public int getAggression() {
		return aggression;
	}

	public void setAggression(int aggression) {
		this.aggression = aggression;
	}

	public int getAnticipation() {
		return anticipation;
	}

	public void setAnticipation(int anticipation) {
		this.anticipation = anticipation;
	}

	public int getBravery() {
		return bravery;
	}

	public void setBravery(int bravery) {
		this.bravery = bravery;
	}

	public int getComposure() {
		return composure;
	}

	public void setComposure(int composure) {
		this.composure = composure;
	}

	public int getConcentration() {
		return concentration;
	}

	public void setConcentration(int concentration) {
		this.concentration = concentration;
	}

	public int getCreativity() {
		return creativity;
	}

	public void setCreativity(int creativity) {
		this.creativity = creativity;
	}

	public int getDecisions() {
		return decisions;
	}

	public void setDecisions(int decisions) {
		this.decisions = decisions;
	}

	public int getDetermination() {
		return determination;
	}

	public void setDetermination(int determination) {
		this.determination = determination;
	}

	public int getFlair() {
		return flair;
	}

	public void setFlair(int flair) {
		this.flair = flair;
	}

	public int getInfluence() {
		return influence;
	}

	public void setInfluence(int influence) {
		this.influence = influence;
	}

	public int getOff_the_ball() {
		return off_the_ball;
	}

	public void setOff_the_ball(int offTheBall) {
		off_the_ball = offTheBall;
	}

	public int getPositioning() {
		return positioning;
	}

	public void setPositioning(int positioning) {
		this.positioning = positioning;
	}

	public int getTeamwork() {
		return teamwork;
	}

	public void setTeamwork(int teamwork) {
		this.teamwork = teamwork;
	}

	public int getWork_rate() {
		return work_rate;
	}

	public void setWork_rate(int workRate) {
		work_rate = workRate;
	}

	public int getAcceleration() {
		return acceleration;
	}

	public void setAcceleration(int acceleration) {
		this.acceleration = acceleration;
	}

	public int getAgility() {
		return agility;
	}

	public void setAgility(int agility) {
		this.agility = agility;
	}

	public int getBalance() {
		return balance;
	}

	public void setBalance(int balance) {
		this.balance = balance;
	}

	public int getJumping() {
		return jumping;
	}

	public void setJumping(int jumping) {
		this.jumping = jumping;
	}

	public int getNatural_fitness() {
		return natural_fitness;
	}

	public void setNatural_fitness(int naturalFitness) {
		natural_fitness = naturalFitness;
	}

	public int getPace() {
		return pace;
	}

	public void setPace(int pace) {
		this.pace = pace;
	}

	public int getStamina() {
		return stamina;
	}

	public void setStamina(int stamina) {
		this.stamina = stamina;
	}

	public int getStrength() {
		return strength;
	}

	public void setStrength(int strength) {
		this.strength = strength;
	}

	public int getConsistency() {
		return consistency;
	}

	public void setConsistency(int consistency) {
		this.consistency = consistency;
	}

	public int getDirtiness() {
		return dirtiness;
	}

	public void setDirtiness(int dirtiness) {
		this.dirtiness = dirtiness;
	}

	public int getImp_matches() {
		return imp_matches;
	}

	public void setImp_matches(int impMatches) {
		imp_matches = impMatches;
	}

	public int getInjury_proneness() {
		return injury_proneness;
	}

	public void setInjury_proneness(int injuryProneness) {
		injury_proneness = injuryProneness;
	}

	public int getVersatility() {
		return versatility;
	}

	public void setVersatility(int versatility) {
		this.versatility = versatility;
	}

	private int corners;
	private int crossing;
	private int dribbling;
	private int finishing;
	private int first_touch;
	private int free_kick_taking;
	private int heading;
	private int long_shots;
	private int long_throws;
	private int marking;
	private int passing;
	private int penalty_taking;
	private int tackling;
	private int technique;

	private int aggression;
	private int anticipation;
	private int bravery;
	private int composure;
	private int concentration;
	private int creativity;
	private int decisions;
	private int determination;
	private int flair;
	private int influence;
	private int off_the_ball;
	private int positioning;
	private int teamwork;
	private int work_rate;

	private int acceleration;
	private int agility;
	private int balance;
	private int jumping;
	private int natural_fitness;
	private int pace;
	private int stamina;
	private int strength;

	private int consistency;
	private int dirtiness;
	private int imp_matches;
	private int injury_proneness;
	private int versatility;

	@Override
	public Object getProperty(int arg0) {
		switch (arg0) {
		case 0:
			return name;
		case 1:
			return corners;
		case 2:
			return crossing;
		case 3:
			return dribbling;
		case 4:
			return finishing;
		case 5:
			return first_touch;
		case 6:
			return free_kick_taking;
		case 7:
			return heading;
		case 8:
			return long_shots;
		case 9:
			return long_throws;
		case 10:
			return marking;
		case 11:
			return passing;
		case 12:
			return penalty_taking;
		case 13:
			return tackling;
		case 14:
			return technique;
		case 15:
			return aggression;
		case 16:
			return anticipation;
		case 17:
			return bravery;
		case 18:
			return composure;
		case 19:
			return concentration;
		case 20:
			return creativity;
		case 21:
			return decisions;
		case 22:
			return determination;
		case 23:
			return flair;
		case 24:
			return influence;
		case 25:
			return off_the_ball;
		case 26:
			return positioning;
		case 27:
			return teamwork;
		case 28:
			return work_rate;
		case 29:
			return acceleration;
		case 30:
			return agility;
		case 31:
			return balance;
		case 32:
			return jumping;
		case 33:
			return natural_fitness;
		case 34:
			return pace;
		case 35:
			return stamina;
		case 36:
			return strength;
		case 37:
			return consistency;
		case 38:
			return dirtiness;
		case 39:
			return imp_matches;
		case 40:
			return injury_proneness;
		case 41:
			return versatility;
		case 42:
			return id;
		}
		return null;
	}

	@Override
	public int getPropertyCount() {
		return 43;
	}

	@SuppressWarnings("rawtypes")
	@Override
	public void getPropertyInfo(int index, Hashtable arg1, PropertyInfo info) {
		switch (index) {
		case 0:
			info.type = PropertyInfo.STRING_CLASS;
			info.name = "name";
			break;
		case 1:
			info.name = "corners";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 2:
			info.name = "crossing";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 3:
			info.name = "dribbling";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 4:
			info.name = "finishing";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 5:
			info.name = "first_touch";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 6:
			info.name = "free_kick_taking";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 7:
			info.name = "heading";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 8:
			info.name = "long_shots";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 9:
			info.name = "long_throws";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 10:
			info.name = "marking";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 11:
			info.name = "passing";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 12:
			info.name = "penalty_taking";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 13:
			info.name = "tackling";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 14:
			info.name = "technique";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;

		case 15:
			info.name = "aggression";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 16:
			info.name = "anticipation";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 17:
			info.name = "bravery";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 18:
			info.name = "composure";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 19:
			info.name = "concentration";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 20:
			info.name = "creativity";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 21:
			info.name = "decisions";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 22:
			info.name = "determination";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 23:
			info.name = "flair";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 24:
			info.name = "influence";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 25:
			info.name = "off_the_ball";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 26:
			info.name = "positioning";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 27:
			info.name = "teamwork";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 28:
			info.name = "work_rate";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 29:
			info.name = "acceleration";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 30:
			info.name = "agility";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 31:
			info.name = "balance";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 32:
			info.name = "jumping";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 33:
			info.name = "natural_fitness";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 34:
			info.name = "pace";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 35:
			info.name = "stamina";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 36:
			info.name = "strength";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 37:
			info.name = "consistency";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 38:
			info.name = "dirtiness";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 39:
			info.name = "imp_matches";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 40:
			info.name = "injury_proneness";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 41:
			info.name = "versatility";
			info.type = PropertyInfo.INTEGER_CLASS;
			break;
		case 42:
			info.name = "id";
			info.type = PropertyInfo.LONG_CLASS;
			break;
		}
	}

	@Override
	public void setProperty(int index, Object value) {
		switch (index) {
		case 0:
			name = value.toString();
			break;
		case 1:
			corners = Integer.parseInt(value.toString());
			break;
		case 2:
			crossing = Integer.parseInt(value.toString());
			break;
		case 3:
			dribbling = Integer.parseInt(value.toString());
			break;
		case 4:
			finishing = Integer.parseInt(value.toString());
			break;
		case 5:
			first_touch = Integer.parseInt(value.toString());
			break;
		case 6:
			free_kick_taking = Integer.parseInt(value.toString());
			break;
		case 7:
			heading = Integer.parseInt(value.toString());
			break;
		case 8:
			long_shots = Integer.parseInt(value.toString());
			break;
		case 9:
			long_throws = Integer.parseInt(value.toString());
			break;
		case 10:
			marking = Integer.parseInt(value.toString());
			break;
		case 11:
			passing = Integer.parseInt(value.toString());
			break;
		case 12:
			penalty_taking = Integer.parseInt(value.toString());
			break;
		case 13:
			tackling = Integer.parseInt(value.toString());
			break;
		case 14:
			technique = Integer.parseInt(value.toString());
			break;
		case 15:
			aggression = Integer.parseInt(value.toString());
			break;
		case 16:
			anticipation = Integer.parseInt(value.toString());
			break;
		case 17:
			bravery = Integer.parseInt(value.toString());
			break;
		case 18:
			composure = Integer.parseInt(value.toString());
			break;
		case 19:
			concentration = Integer.parseInt(value.toString());
			break;
		case 20:
			creativity = Integer.parseInt(value.toString());
			break;
		case 21:
			decisions = Integer.parseInt(value.toString());
			break;
		case 22:
			determination = Integer.parseInt(value.toString());
			break;
		case 23:
			flair = Integer.parseInt(value.toString());
			break;
		case 24:
			influence = Integer.parseInt(value.toString());
			break;
		case 25:
			off_the_ball = Integer.parseInt(value.toString());
			break;
		case 26:
			positioning = Integer.parseInt(value.toString());
			break;
		case 27:
			teamwork = Integer.parseInt(value.toString());
			break;
		case 28:
			work_rate = Integer.parseInt(value.toString());
			break;
		case 29:
			acceleration = Integer.parseInt(value.toString());
			break;
		case 30:
			agility = Integer.parseInt(value.toString());
			break;
		case 31:
			balance = Integer.parseInt(value.toString());
			break;
		case 32:
			jumping = Integer.parseInt(value.toString());
			break;
		case 33:
			natural_fitness = Integer.parseInt(value.toString());
			break;
		case 34:
			pace = Integer.parseInt(value.toString());
			break;
		case 35:
			stamina = Integer.parseInt(value.toString());
			break;
		case 36:
			strength = Integer.parseInt(value.toString());
			break;
		case 37:
			consistency = Integer.parseInt(value.toString());
			break;
		case 38:
			dirtiness = Integer.parseInt(value.toString());
			break;
		case 39:
			imp_matches = Integer.parseInt(value.toString());
			break;
		case 40:
			injury_proneness = Integer.parseInt(value.toString());
			break;
		case 41:
			versatility = Integer.parseInt(value.toString());
			break;
		case 42:
			id = Long.parseLong(value.toString());
			break;
		}
	}

}
